package com.bestdreamer.atomic;

public class Demo1MyThread extends Thread {

    private final Demo1MyService myService;

    public Demo1MyThread(Demo1MyService myService){
        this.myService = myService;
    }

    @Override
    public void run() {
        myService.addNum();
    }
}
